/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SmartGasMeter {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010010026';
    }

    get categoryName() {
        return '\u667a\u80fd\u6c14\u8868';
    }

    getBalanceMoney(params) {
        return command({
            method: 'getBalanceMoney',
            methodId: 'pghzV1Nb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getChargeMoney(params) {
        return command({
            method: 'getChargeMoney',
            methodId: 'pDrhxkYx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getDayGas(params) {
        return command({
            method: 'getDayGas',
            methodId: 'p1vFkqgG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMonthGas(params) {
        return command({
            method: 'getMonthGas',
            methodId: 'pGoxubp3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pUPQQGbS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTotalGas(params) {
        return command({
            method: 'getTotalGas',
            methodId: 'pZgRgxfV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setChargeMoney(params) {
        return command({
            method: 'setChargeMoney',
            methodId: 'ppAXpyWL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peHyXjMZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SmartGasMeter;
